package com.atguigu.pojo;

import java.util.Objects;

public class BasicBehavior {
    String id;
    String mainTaskId;
    String deployServiceModuleId;
    String deployGoalId;
    String command;
    String clientId;
    String result;
    String status;
    String type;

    public BasicBehavior() {
    }

    public BasicBehavior(String id, String mainTaskId, String deployServiceModuleId, String deployGoalId, String command, String clientId, String result, String status, String type) {
        this.id = id;
        this.mainTaskId = mainTaskId;
        this.deployServiceModuleId = deployServiceModuleId;
        this.deployGoalId = deployGoalId;
        this.command = command;
        this.clientId = clientId;
        this.result = result;
        this.status = status;
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMainTaskId() {
        return mainTaskId;
    }

    public void setMainTaskId(String mainTaskId) {
        this.mainTaskId = mainTaskId;
    }

    public String getDeployServiceModuleId() {
        return deployServiceModuleId;
    }

    public void setDeployServiceModuleId(String deployServiceModuleId) {
        this.deployServiceModuleId = deployServiceModuleId;
    }

    public String getDeployGoalId() {
        return deployGoalId;
    }

    public void setDeployGoalId(String deployGoalId) {
        this.deployGoalId = deployGoalId;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "BasicBehavior{" +
                "id='" + id + '\'' +
                ", mainTaskId='" + mainTaskId + '\'' +
                ", deployServiceModuleId='" + deployServiceModuleId + '\'' +
                ", deployGoalId='" + deployGoalId + '\'' +
                ", command='" + command + '\'' +
                ", clientId='" + clientId + '\'' +
                ", result='" + result + '\'' +
                ", status='" + status + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof BasicBehavior)) return false;
        BasicBehavior that = (BasicBehavior) o;
        return getId().equals(that.getId()) && getMainTaskId().equals(that.getMainTaskId()) && getDeployServiceModuleId().equals(that.getDeployServiceModuleId()) && getDeployGoalId().equals(that.getDeployGoalId()) && getCommand().equals(that.getCommand()) && getClientId().equals(that.getClientId()) && getResult().equals(that.getResult()) && getStatus().equals(that.getStatus()) && getType().equals(that.getType());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getMainTaskId(), getDeployServiceModuleId(), getDeployGoalId(), getCommand(), getClientId(), getResult(), getStatus(), getType());
    }
}
